//创建token对象
const KEY ='bignew-vue'

//存key
function saveToken(obj) {
    localStorage.setItem(KEY,JSON.stringify(obj))
}
//取key
function getToken() {
    return JSON.parse(localStorage.getItem(KEY))
}
//删除key
function removeToken() {
    localStorage.removeItem(key)
}
//导出接口
export {getToken,saveToken,removeToken}